﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/main/AdminBase.Master" AutoEventWireup="true" CodeBehind="add_news.aspx.cs" Inherits="com.lifan.motorcycle.admin.cms.add_news" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_pagename" runat="server">
内容管理 &gt; <%= base.ConvertAction("新闻") %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_pagelink" runat="server">
<li><a href="list_news.aspx?action=list<%= base.GetQueryStringAdd() %>">新闻列表</a></li>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cph_main" runat="server">
<form id="frm_addBlock" runat="server">
<table class="table" cellpadding="0" cellspacing="0">
	<tr>
    	<th colspan="3"><asp:Label ID="lblMessage" runat="server" Text="&nbsp;"></asp:Label></th>
    </tr>
    <tr>
    	<th class="w180">新闻类别</th>        
        <td class="item w400"><CustomUI:SubTermDDL runat="server" ID="ddlTerm"  ParentTermID="-1" ParentTermLabel="news" ShowTips="true" ShowRecursion="true" ></CustomUI:SubTermDDL></td>
        <td class="aitem">区块类别，必须选择</td>
    </tr>
    <tr>
    	<th class="w180">新闻标题</th>        
        <td class="item w400"><asp:TextBox ID="txtTitle" runat="server" MaxLength="100" CssClass="ipttxt w360 h20"></asp:TextBox></td>
        <td class="aitem">新闻标题</td>
    </tr>
    <tr>
    	<th class="w180">新闻附件</th>        
        <td class="item w400"><CustomControl:FileUploader runat="server" ID="fuUploader" /></td>
        <td class="aitem">新闻附件，只做文件大小校验。</td>
    </tr>
    <tr>
    	<th class="w180">新闻描述</th>        
        <td class="item w400"><asp:TextBox ID="txtSummary" runat="server" MaxLength="400" CssClass="ipttxt w360 h20"></asp:TextBox></td>
        <td class="aitem">新闻描述</td>
    </tr>
    <tr>
    	<th class="w180">新闻内容</th>
        <td class="item w400"></td>
        <td class="aitem">新闻内容</td>
    </tr>
    <tr>
    	<th></th>
        <td class="aitem" colspan="2" style="text-indent:0;"><CKEditor:CKEditorControl Toolbar="Full" ID="ckeContent" Skin="office2003" runat="server" Width="96%" Height="350"></CKEditor:CKEditorControl></td>
    </tr>
    <tr>
    	<th class="w180">是否推荐</th>        
        <td class="item w400"><asp:CheckBox ID="cbRecommend" runat="server" ></asp:CheckBox></td>
        <td class="aitem">如果勾选，可在首页显示</td>
    </tr>
    <tr>
    	<th class="w180">新闻链接</th>        
        <td class="item w400"><asp:TextBox ID="txtLink" runat="server" MaxLength="200" CssClass="ipttxt w360 h20"></asp:TextBox></td>
        <td class="aitem">如果输入此项，则优先显示此项</td>
    </tr>
    <tr>
    	<th class="w180">新闻作者</th>        
        <td class="item w400"><asp:TextBox ID="txtAuth" runat="server" MaxLength="20" CssClass="ipttxt w360 h20"></asp:TextBox></td>
        <td class="aitem">新闻作者，最多20字符</td>
    </tr>
    <tr>
    	<th class="w180">是否上线</th>        
        <td class="item w400"><asp:CheckBox ID="cbOnline" runat="server" ></asp:CheckBox></td>
        <td class="aitem">选择上线，方可在前台显示</td>
    </tr> 
    <tr>
	    <th class="w180">上线预发布</th>        
        <td class="item w400"><asp:TextBox ID="txtOnline" runat="server" MaxLength="10" CssClass="ipttxt w100 h20" onclick="WdatePicker();"></asp:TextBox>&nbsp;&nbsp;
        <CustomUI:TimeHour runat="server" ID="ddlHour"></CustomUI:TimeHour>:
        <CustomUI:TimeMinute runat="server" ID="ddlMinute"></CustomUI:TimeMinute>
        </td>
        <td class="aitem">您可以指定新闻在固定的时间上线，精确到分钟</td>
    </tr>
    <tr>
    	<th class="w180">&nbsp;</th>
        <td class="item"><asp:Button ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click" /></td>
        <td class="aitem">&nbsp;<asp:HiddenField ID="hfID" runat="server" Value="0" /></td>
    </tr>
    <tr>
        <th colspan="3">
        <%
            ExecuteStop = new DateTime();
            Response.Write("页面执行时间：" + (ExecuteStop - ExecuteStart).TotalMilliseconds + "毫秒");
        %>
        </th>
    </tr>
</table>
</form>
</asp:Content>
